package thesis.filesharing.bo.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import thesis.filesharing.bo.StudentBO;
import thesis.filesharing.dao.StudentDAO;
import thesis.filesharing.model.Student;

@Service
public class StudentBOImpl implements StudentBO {
	
	@Autowired
	private StudentDAO studentDAO;
	
	@Override
	public Student findStudentById(String studentId) {
		return studentDAO.findStudentById(studentId);
	}

	@Override
	public Student findStudentByEmail(String studentEmail) {
		return studentDAO.findStudentByEmail(studentEmail);
	}

	@Override
	public Student saveStudent(Student student) {
		return studentDAO.saveStudent(student);
	}
}
